<?php
namespace App\Transform;
/**
 * Created by PhpStorm.
 * User: XYX
 * Date: 2017/7/19
 * Time: 17:09
 */
abstract class Transformer
{
    public function transformCollect($item){

        return collect($item)->map(function($items){
            return $this->transFrom($items);
        })->toArray();
    }
    public abstract function transFrom($item);
}